import { lazy } from "react";
import {createBrowserRouter} from 'react-router-dom'
// import App from '../App'

const Detail = lazy(()=>import('../pages/Detail/Index'))
const App = lazy(()=>import('../App'))

const routes = [
    {
        path:'/',
        element:<App></App>,
    },
    {
        path:'/detail',
        element:<Detail></Detail>,
    }
]
const router = createBrowserRouter(routes)
export default router